﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Top.ascx.cs" Inherits="APP_Controls_Top" %>
<!--Top-->
<div class="top">
    <script src="../js/jquery-1.9.1.js"></script>
    <p class="wel">欢迎来到彩票米米</p>
    <div class="top_link">
        <%if (member != null)
            { %>
                                   用户：<%=member.nickname%>
        <a href="javascript:loginout();">注销</a>
        <script type="text/javascript">
            function loginout() {
                jQuery.ajax({
                    url: "../../Ajax/MemberLogin.ashx",
                    data: { t: 'login_out' },
                    type: "POST",
                    success: function (data) {
                        window.location.href = "/Default.aspx";
                    }
                });
            }
        </script>
        <a href="/personal.aspx">我的彩票</a>
        <%}
            else
            { %>
        <div id="box11" class="b"><a href="/login.aspx" class="011">登录</a></div>
        <div id="box22" class="y"><a href="/reg.aspx" class="022">注册</a></div>
        |
        <a href="/login.aspx" class="my011">我的彩票</a>
        <%} %>
    </div>
</div>
<!--Top-->
